package org.jeecg.modules.waybill.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Description: 订单表
 * @Author: jeecg-boot
 * @Date: 2024-04-11
 * @Version: V1.0
 */
@Data
@TableName("wlhy_waybill")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "wlhy_waybill对象", description = "订单表")
public class WlhyWaybill implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @ApiModelProperty(value = "创建人")
    private java.lang.String userId;
    /**
     * 运单号
     */
    @Excel(name = "运单号", width = 15)
    @ApiModelProperty(value = "运单号")
    private java.lang.String waybillNo;
    /**
     * 提货时间
     */
    @Excel(name = "提货时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提货时间")
    @NotNull(message = "请填写提货时间")
    private java.util.Date deliveryTime;
    /**
     * 预计送达时间
     */
    @Excel(name = "预计送达时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预计送达时间")
    @NotNull(message = "请填写预计送达时间")
    private java.util.Date estArrivalTime;
    /**
     * 发货人姓名
     */
    @Excel(name = "发货人姓名", width = 15)
    @ApiModelProperty(value = "发货人姓名")
    @NotBlank(message = "请填写发货人姓名")
    private java.lang.String shipperName;
    /**
     * 发货人电话
     */
    @Excel(name = "发货人电话", width = 15)
    @ApiModelProperty(value = "发货人电话")
    @NotBlank(message = "请填写发货人电话")
    @Pattern(regexp = "^1[3456789]\\d{9}$", message = "发货人电话不合法")
    private java.lang.String shipperPhone;
    /**
     * 发货人证件号
     */
    @Excel(name = "发货人证件号", width = 15)
    @ApiModelProperty(value = "发货人证件号")
    @NotBlank(message = "请填写发货人证件号")
    @Pattern(regexp = "^[1-9]\\d{5}(19|20)\\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X|x)$", message = "发货人证件号不合法")
    private java.lang.String shipperIdNum;
    /**
     * 发货人地区编码
     */
    @Excel(name = "发货人地区编码", width = 15)
    @ApiModelProperty(value = "发货人地区编码")
    @NotBlank(message = "请选择发货人省市县")
    private java.lang.String shipperAreaCode;
    /**
     * 发货人地区名称
     */
    @Excel(name = "发货人地区名称", width = 15)
    @ApiModelProperty(value = "发货人地区名称")
    private java.lang.String shipperAreaName;
    /**
     * 发货人详细地址
     */
    @Excel(name = "发货人详细地址", width = 15)
    @ApiModelProperty(value = "发货人详细地址")
    @NotBlank(message = "请填写发货人详细地址")
    private java.lang.String shipperDetailAddr;
    /**
     * 发货方经纬度
     */
    @Excel(name = "发货人经纬度", width = 15)
    @ApiModelProperty(value = "发货人经纬度")
    private java.lang.String shipperLnglat;
    /**
     * 收货方姓名
     */
    @Excel(name = "收货方姓名", width = 15)
    @ApiModelProperty(value = "收货人姓名")
    @NotBlank(message = "请填写收货人姓名")

    private java.lang.String consignerName;
    /**
     * 收货方电话
     */
    @Excel(name = "收货方电话", width = 15)
    @ApiModelProperty(value = "收货方电话")
    @NotBlank(message = "请填写收货方电话")
    @Pattern(regexp = "^1[3456789]\\d{9}$", message = "收货人电话不合法")
    private java.lang.String consignerPhone;
    /**
     * 收件方证件号
     */
    @Excel(name = "收件方证件号", width = 15)
    @ApiModelProperty(value = "收件人证件号")
    @NotBlank(message = "请填写收件人证件号")
    @Pattern(regexp = "^[1-9]\\d{5}(19|20)\\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|X|x)$", message = "收件人证件号不合法")

    private java.lang.String consignerIdNum;
    /**
     * 收货方地区编码
     */
    @Excel(name = "收件人地区编码", width = 15)
    @ApiModelProperty(value = "收件人地区编码")
    @NotBlank(message = "请选择收件人省市县")

    private java.lang.String consignerAreaCode;
    /**
     * 收货方地区名称
     */
    @Excel(name = "收件人地区名称", width = 15)
    @ApiModelProperty(value = "收件人地区名称")
    private java.lang.String consignerAreaName;
    /**
     * 收货方详细地址
     */
    @Excel(name = "收货人详细地址", width = 15)
    @ApiModelProperty(value = "收货人详细地址")
    @NotBlank(message = "请填写收货人详细地址")

    private java.lang.String consignerDetailAddr;
    /**
     * 收货人经纬度
     */
    @Excel(name = "收货人经纬度", width = 15)
    @ApiModelProperty(value = "收货人经纬度")
    private java.lang.String consignerLnglat;
    /**
     * 货物名称
     */
    @Excel(name = "货物名称", width = 15)
    @ApiModelProperty(value = "货物名称")
    @NotBlank(message = "请填写货物名称")

    private java.lang.String cargoName;
    /**
     * 货物件数
     */
    @Excel(name = "货物件数", width = 15)
    @ApiModelProperty(value = "货物件数")
    @NotNull(message = "请填写货物件数")
    @Min(value = 1, message = "货物件数最少为1件")

    private java.lang.Integer cargoPieces;
    /**
     * 货物重量
     */
    @Excel(name = "货物重量", width = 15)
    @ApiModelProperty(value = "货物重量")
    @NotNull(message = "请填写货物重量")
    private java.math.BigDecimal cargoWeight;
    /**
     * 货物体积
     */
    @Excel(name = "货物体积", width = 15)
    @ApiModelProperty(value = "货物体积")
    @NotNull(message = "请填写货物体积")

    private java.math.BigDecimal cargoVolume;
    /**
     * 货物价值
     */
    @Excel(name = "货物价值", width = 15)
    @ApiModelProperty(value = "货物价值")
    private java.math.BigDecimal cargoPrice;
    /**
     * 货物备注
     */
    @Excel(name = "货物备注", width = 15)
    @ApiModelProperty(value = "货物备注")
    private java.lang.String cargoRemark;
    /**
     * 代收款
     */
    @Excel(name = "代收款", width = 15)
    @ApiModelProperty(value = "代收款")
    private java.math.BigDecimal invoicingFee;
    /**
     * 代收款支付方式
     */
    @Excel(name = "代收款支付方式", width = 15, dicCode = "pay_mode")
    @Dict(dicCode = "pay_mode")
    @ApiModelProperty(value = "代收款支付方式")
    private java.lang.String invoicingPayMode;
    /**
     * 是否收取代收款
     */
    @Excel(name = "是否收取代收款", width = 15)
    @ApiModelProperty(value = "是否收取代收款")
    private java.lang.Integer izInvoicingFee;
    /**
     * 代收款订单号
     */
    @Excel(name = "代收款订单号", width = 15)
    @ApiModelProperty(value = "代收款订单号")
    private java.lang.String invoicingOrderNum;
    /**
     * 实际代收款支付方式
     */
    @Excel(name = "实际代收款支付方式", width = 15, dicCode = "pay_mode")
    @Dict(dicCode = "pay_mode")
    @ApiModelProperty(value = "实际代收款支付方式")
    private java.lang.String invoicingRealPayMode;
    /**
     * 司机运费
     */
    @Excel(name = "司机运费", width = 15)
    @ApiModelProperty(value = "司机运费")
    @NotNull(message = "请填写货物体积")
    @Min(value = 0, message = "司机运费不合法")
    private java.math.BigDecimal driverFreightFee;
    /**
     * 结算运费状态
     */
    @Excel(name = "结算运费状态", width = 15)
    @ApiModelProperty(value = "结算运费状态")
    private java.lang.Integer settleFreightStatus;
    /**
     * 运费结算时间
     */
    @Excel(name = "运费结算时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "运费结算时间")
    private java.util.Date settleFreightTime;
    /**
     * 运费结算方式
     */
    @Excel(name = "运费结算方式", width = 15)
    @ApiModelProperty(value = "运费结算方式")
    private java.lang.String settleFreightMode;
    /**
     * 是否指派司机
     */
    @Excel(name = "是否指派司机", width = 15)
    @ApiModelProperty(value = "是否指派司机")
    private java.lang.Integer izAssignDriver;
    /**
     * 接单时间
     */
    @Excel(name = "接单时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "接单时间")
    private java.util.Date orderTime;
    /**
     * 接单用户
     */
    @Excel(name = "接单用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @ApiModelProperty(value = "接单用户")
    private java.lang.String driverUserId;
    /**
     * 司机车牌号
     */
    @Excel(name = "司机车牌号", width = 15)
    @ApiModelProperty(value = "司机车牌号")
    private java.lang.String driverVehicleNo;
    /**
     * 司机电话
     */
    @Excel(name = "司机电话", width = 15)
    @ApiModelProperty(value = "司机电话")
    private java.lang.String driverPhone;
    /**
     * 司机姓名
     */
    @Excel(name = "司机姓名", width = 15)
    @ApiModelProperty(value = "司机姓名")
    private java.lang.String driverName;
    /**
     * 司机银行卡
     */
    @Excel(name = "司机银行卡", width = 15)
    @ApiModelProperty(value = "司机银行卡")
    private java.lang.String driverBankId;
    /**
     * 司机银行开户名
     */
    @Excel(name = "司机银行开户名", width = 15)
    @ApiModelProperty(value = "司机银行开户名")
    private java.lang.String driverBankHolder;
    /**
     * 司机银行卡号
     */
    @Excel(name = "司机银行卡号", width = 15)
    @ApiModelProperty(value = "司机银行卡号")
    private java.lang.String driverBankCardNo;
    /**
     * 司机开户银行
     */
    @Excel(name = "司机开户银行", width = 15)
    @ApiModelProperty(value = "司机开户银行")
    private java.lang.String driverBankName;
    /**
     * 浏览量
     */
    @Excel(name = "浏览量", width = 15)
    @ApiModelProperty(value = "浏览量")
    private java.lang.Integer scanNum;
    /**
     * 评论量
     */
    @Excel(name = "评论量", width = 15)
    @ApiModelProperty(value = "评论量")
    private java.lang.Integer commentNum;
    /**
     * 订单状态
     */
    @Excel(name = "订单状态", width = 15, dicCode = "waybill_status")
    @Dict(dicCode = "waybill_status")
    @ApiModelProperty(value = "订单状态")
    private java.lang.String waybillStatus;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15, dicCode = "row_status")
    @Dict(dicCode = "row_status")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;


    @Excel(name = "发布公司名称", width = 15)
    @ApiModelProperty(value = "发布公司名称")
    private java.lang.String companyName;

    @Excel(name = "发布公司logo", width = 15)
    @ApiModelProperty(value = "发布公司logo")
    private java.lang.String companyLogo;

    @Excel(name = "发布公司id", width = 15)
    @ApiModelProperty(value = "发布公司id")
    private java.lang.String companyId;


}
